package ${c.module.totalPackage}.${c.module.moduleName}.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;
import com.guinea.core.orm.BaseEntity;

public class ${c.name} implements BaseEntity {

	private Long id;
    <#list c.oneToOne as o>
    
    private ${o.className} ${o.name};
    </#list>
    <#list c.manyToOne as mo>
    
    private ${mo.className} ${mo.name};
    </#list>
    <#list c.oneToMany as om>
    
    private Set ${om.name} = new HashSet(0);
    </#list>
    <#list c.properties as p>
    
    private ${p.type} ${p.name};
    </#list>
    
	private String status;

	private Long createdUser;

	private Date createdDate;

	private Long updatedUser;

	private Date updatedDate;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}
	
	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}

	public Long getCreatedUser() {
		return createdUser;
	}

	public void setCreatedUser(Long createdUser) {
		this.createdUser = createdUser;
	}

	public Date getUpdatedDate() {
		return updatedDate;
	}

	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}

	public Long getUpdatedUser() {
		return updatedUser;
	}

	public void setUpdatedUser(Long updatedUser) {
		this.updatedUser = updatedUser;
	}
    <#list c.properties as p>

	public ${p.type} get${p.name?cap_first}() {
		return ${p.name};
	}

	public void set${p.name?cap_first}(${p.type} ${p.name}) {
		this.${p.name} = ${p.name};
	}
    </#list>
    <#list c.oneToOne as o>

	public ${o.className} get${o.name?cap_first}() {
		return ${o.name};
	}

	public void set${o.name?cap_first}(${o.className} ${o.name}) {
		this.${o.name} = ${o.name};
	}
    </#list>
    <#list c.manyToOne as mo>

	public ${mo.className} get${mo.name?cap_first}() {
		return ${mo.name};
	}

	public void set${mo.name?cap_first}(${mo.className} ${mo.name}) {
		this.${mo.name} = ${mo.name};
	}
    </#list>
    <#list c.oneToMany as om>

	public Set get${om.name?cap_first}() {
		return ${om.name};
	}

	public void set${om.name?cap_first}(Set ${om.name}) {
		this.${om.name} = ${om.name};
	}
    </#list>

}
